package threads;

public class JoinExample {
	
	   public static void main(String[] args)throws InterruptedException{
       Thread t=new Thread(new Runnable() {

		@Override
		public void run() {
			System.out.println("First task started");
			
			
	
		    
			System.out.println("First task complete");
			
		}
    	   
    	   
    	   
    	   
    	   
       }
    		   
    		   );
       
       Thread t1=new Thread(new Runnable() {

		@Override
		public void run() {
			System.out.println("Second task ");
			
		}
    	   
       });
      
       
       t.start();
       t1.start();
	   } 
}
